package com.hualan.mapper;

import com.hualan.pojo.PubUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【pub_user】的数据库操作Mapper
* @createDate 2025-04-27 22:30:25
* @Entity com.hualan.pojo.PubUser
*/
@Mapper
public interface PubUserMapper {

    List<PubUser> selectUserList(PubUser pubUser);
    int insertUser(PubUser pubUser);
    int deleteUserById(Integer id);
    int deleteUsersByIds(List<Integer> ids);
    int updateUser(PubUser pubUser);
    //--------------------------------------
    PubUser findByUsername(String username);
    int save(PubUser user);
    int updatePhone(int id, String phone);
    int updatePassword(int id, String password);
    PubUser findById(@Param("id") int id);
}
    //--------------------------------------


